import request from '@/utils/request'

//佣金收款单列表
export function commissionOrderlists(params?: any) {
    return request.get({ url: '/setting.pay.payConfig/commissionOrderlists', params })
}

//更新收款单开票状态
export function updateInvoiceStatus(params: any) {
    return request.post({ url: '/setting.pay.payConfig/updateInvoiceStatus', params })
}

//收款单详情
export function commissionOrderDetail(params?: any) {
    return request.get({ url: '/setting.pay.payConfig/commissionOrderDetail', params })
}

//收款单未到账
export function unPay(params: any) {
    return request.post({ url: '/setting.pay.payConfig/unPay', params })
}

//收款单已到账
export function paid(params: any) {
    return request.post({ url: '/setting.pay.payConfig/paid', params })
}



//获取渠道收佣配置
export function getChannelRateConfig(params?: any) {
    return request.get({ url: '/cooperation.cooperation/getChannelRateConfig', params })
}

//设置渠道收佣配置
export function setChannelRateConfig(params: any) {
    return request.post({ url: '/cooperation.cooperation/channelRateConfig', params })
}


//对公支付配置列表
export function payConfigLists(params?: any) {
    return request.get({ url: '/setting.pay.payConfig/toPubliclists', params })
}

//添加对公支付配置
export function payConfigAdd(params: any) {
    return request.post({ url: '/setting.pay.payConfig/add', params })
}

//编辑对公支付配置
export function payConfigEdit(params: any) {
    return request.post({ url: '/setting.pay.payConfig/edit', params })
}

//删除对公支付配置
export function payConfigDelete(params: any) {
    return request.post({ url: '/setting.pay.payConfig/delete', params })
}

//对公支付配置详情
export function payConfigDetail(params: any) {
    return request.get({ url: '/setting.pay.payConfig/detail', params })
}

//更改对公支付配置状态
export function payConfigUpdateStatus(params: any) {
    return request.post({ url: '/setting.pay.payConfig/updateStatus', params })
}


//余额明细
export function accountLog(params?: any) {
    return request.get({ url: '/finance.account_log/lists', params })
}

//充值记录
export function rechargeLists(params?: any) {
    return request.get({ url: '/recharge.recharge/lists', params }, { ignoreCancelToken: true })
}

//余额变动类型
export function getUmChangeType(params?: any) {
    return request.get({ url: '/finance.account_log/getUmChangeType', params })
}

//退款
export function refund(params?: any) {
    return request.post({ url: '/recharge.recharge/refund', params })
}

//重新退款
export function refundAgain(params?: any) {
    return request.post({ url: '/recharge.recharge/refundAgain', params })
}

//退款记录
export function refundRecord(params?: any) {
    return request.get({ url: '/finance.refund/record', params })
}

//退款日志
export function refundLog(params?: any) {
    return request.get({ url: '/finance.refund/log', params })
}

//退款统计
export function refundStat(params?: any) {
    return request.get({ url: '/finance.refund/stat', params })
}





// 账户管理
export function accountList(params?: any) {
    return request.get({ url: '/user.money/accountList', params })
}
// 账户流水
export function moneyLog(params?: any) {
    return request.get({ url: '/user.money/moneyLog', params })
}
// 账户冻结
export function setStatus(params?: any) {
    return request.post({ url: '/user.money/setStatus', params })
}
//提现列表
export function withdrawList(params?: any) {
    return request.get({ url: '/user.money/withdrawList', params })
}
// 提现审核
export function authWithdraw(params?: any) {
    return request.post({ url: '/user.money/authWithdraw', params })
}
// 申请提现详情
export function withdrawInfo(params?: any) {
    return request.get({ url: '/user.money/withdrawInfo', params })
}
// 账户详情
export function accountInfo(params?: any) {
    return request.get({ url: '/user.money/accountInfo', params })
}
// 分佣比例列表
export function commissionList(params?: any) {
    return request.get({ url: '/user.money/commissionList', params })
}
// 保存分佣比例
export function commissionChange(params?: any) {
    return request.post({ url: '/user.money/commissionChange', params })
}
// 删除分佣比例
export function commissionDel(params?: any) {
    return request.post({ url: '/user.money/commissionDel', params })
}

// 补贴列表
export function subsidyList(params?: any) {
    return request.get({ url: '/user.money/subsidyList', params })
}
// 补贴审核
export function authSubsidy(params?: any) {
    return request.post({ url: '/user.money/authSubsidy', params })
}

// 退款单列表
export function commissionRefundLists(params?: any) {
    return request.get({ url: '/setting.pay.payConfig/commissionRefundLists', params })
}
// 退款单详情
export function commissionRefundDetail(params?: any) {
    return request.get({ url: '/setting.pay.payConfig/commissionRefundDetail', params })
}